package main

import (
	"github.com/irisProject/routes"
	"github.com/irisProject/bootstrap"
	"github.com/kataras/iris"
)

//开发时候 热加载启动项目
//go get -u github.com/kataras/rizla
//rizla run main.go
func main() {
	app:=bootstrap.New()
	app.Configure(routes.Configure)
	app.Start(
		//按下CTRL/CMD+C时跳过错误的服务器：
		iris.WithoutServerError(iris.ErrServerClosed),
		//启用更快的json序列化和优化：
		iris.WithOptimizations,
	)
}
